package account.command;

import java.sql.SQLException;

import account.dao.AccountDAO;
import account.dao.factory.DAOAbstractFactory;
import account.model.AccountModel;

public class SaveAccountComman implements Command {

	public AccountModel inModel;
	public AccountModel outModel;
	
	@Override
	public void execute() throws CommandException {
		
		AccountDAO accountDAO = DAOAbstractFactory.getFactory().getAccountDAO();
		try {
			outModel = accountDAO.saveAccount(inModel);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

	}

}
